<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>小区房屋及人员信息管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- Le styles -->
    <script type="text/javascript" src="assets/js/jquery.js"></script>

    <link rel="stylesheet" href="assets/css/style.css">
    <link rel="stylesheet" href="assets/css/loader-style.css">
    <link rel="stylesheet" href="assets/css/bootstrap.css">
    <link rel="stylesheet" href="assets/css/media.css">
    <link rel="stylesheet" href="assets/css/social.css">






    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
    <!-- Fav and touch icons -->
    <link rel="shortcut icon" href="assets/ico/minus.png">
</head>

<body><div id="awwwards" class="right black"><a href="http://www.awwwards.com/best-websites/apricot-navigation-admin-dashboard-template" target="_blank">best websites of the world</a></div>
    <!--预加载程序-->
    <div id="preloader">
        <div id="status">&nbsp;</div>
    </div>
    <!-- 顶部导航 -->
    <nav role="navigation" class="navbar navbar-static-top">
        <div class="container-fluid">
            <!-- 获得更好的移动显示和分组 -->
            <div class="navbar-header">
                <button data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" class="navbar-toggle" type="button">
                    <span class="entypo-menu"></span>
                </button>
                <button class="navbar-toggle toggle-menu-mobile toggle-left" type="button">
                    <span class="entypo-list-add"></span>
                </button>

                <div id="logo-mobile" class="visible-xs">
                   <h1>小区房屋及人员信息管理系统</h1>
                </div>

            </div>


            <!--收集导航链接、表单和其他内容以进行切换-->
            <div id="bs-example-navbar-collapse-1" class="collapse navbar-collapse">
                <ul class="nav navbar-nav">

                    <li class="dropdown">
                        <!--下拉菜单data-toggle="dropdown"，标记有23条信息-->
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#"><i style="font-size:20px;" class="icon-conversation"></i><div class="noft-red">23</div></a>

                        <ul style="margin: 11px 0 0 9px;" role="menu" class="dropdown-menu dropdown-wrap">
                            <li>
                                <a href="#">
                                    <img alt="" class="img-msg img-circle" src="http://api.randomuser.me/portraits/thumb/men/1.jpg">陈曼仁<b>刚刚</b>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#">
                                    <img alt="" class="img-msg img-circle" src="http://api.randomuser.me/portraits/thumb/women/1.jpg">陈丽平<b>3分钟之前</b>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#">
                                    <img alt="" class="img-msg img-circle" src="http://api.randomuser.me/portraits/thumb/men/10.jpg">钟惠珍<b>5分钟之前</b>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#">
                                    <img alt="" class="img-msg img-circle" src="http://api.randomuser.me/portraits/thumb/men/3.jpg">徐洁怡  <b>1天之前</b>
                                </a>
                            </li>

                            <!--divider直线-->
                            <li class="divider"></li>
                            <li>
                                <a href="#">
                                    <img alt="" class="img-msg img-circle" src="http://api.randomuser.me/portraits/thumb/men/2.jpg">程可霓<b>3个月之前</b>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <div>查看所有信息</div>
                            </li>
                        </ul>
                    </li>
                    <li>

                        <a data-toggle="dropdown" class="dropdown-toggle" href="#"><i style="font-size:19px;" class="icon-warning tooltitle"></i><div class="noft-green">3</div></a>
                        <ul style="margin: 12px 0 0 0;" role="menu" class="dropdown-menu dropdown-wrap">
                            <li>
                                <a href="#">
                                    <span style="background:#DF2135" class="noft-icon maki-bus"></span>来自社区的邮件 <b>刚刚</b>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#">
                                    <span style="background:#AB6DB0" class="noft-icon maki-airport"></span>最新消息2 <b>早上9:00</b>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#">
                                    <span style="background:#FFA200" class="noft-icon maki-bicycle"></span>最新消息1<b>早上6:00</b>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <div>查看所有信息</div>
                            </li>
                        </ul>
                    </li>
                    <li><a href="#"><i data-toggle="tooltip" data-placement="bottom" title="帮助" style="font-size:20px;" class="icon-help tooltitle"></i></a>
                    </li>

                </ul>
                <div id="nt-title-container" class="navbar-left running-text visible-lg">
                    <ul class="date-top">
                        <li class="entypo-calendar" style="margin-right:5px"></li>
                        <li id="Date"></li>
                    </ul>

                    <ul id="digital-clock" class="digital">
                        <!--显示当前日期-->
                        <li class="entypo-clock" style="margin-right:5px"></li>
                        <li class="hour"></li>
                        <li>:</li>
                        <!--显示当前时间-->
                        <li class="min"></li>
                        <li>:</li>
                        <li class="sec"></li>
                        <li class="meridiem"></li>
                    </ul>

                    <ul id="nt-title">
                        <li><i class="wi-day-lightning"></i>&#160;&#160;Berlin&#160;
                            <b>85</b><i class="wi-fahrenheit"></i>&#160;; 15km/h
                        </li>
                        <li><i class="wi-day-lightning"></i>&#160;&#160;Yogyakarta&#160;
                            <b>85</b><i class="wi-fahrenheit"></i>&#160;; Tonight- 72 °F (22.2 °C)
                        </li>

                        <li><i class="wi-day-lightning"></i>&#160;&#160;Sttugart&#160;
                            <b>85</b><i class="wi-fahrenheit"></i>&#160;; 15km/h
                        </li>

                        <li><i class="wi-day-lightning"></i>&#160;&#160;Muchen&#160;
                            <b>85</b><i class="wi-fahrenheit"></i>&#160;; 15km/h
                        </li>

                        <li><i class="wi-day-lightning"></i>&#160;&#160;Frankurt&#160;
                            <b>85</b><i class="wi-fahrenheit"></i>&#160;; 15km/h
                        </li>

                    </ul>
                </div>

                <ul style="margin-right:0;" class="nav navbar-nav navbar-right">
                    <li>
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <img alt="" class="admin-pic img-circle" src="http://api.randomuser.me/portraits/thumb/women/8.jpg">哈喽, 张裕嘉<b class="caret"></b>
                        </a>
                        <ul style="margin-top:14px;" role="menu" class="dropdown-setting dropdown-menu">
                            <li>
                                <a href="#">
                                    <span class="entypo-user"></span>&#160;&#160;个人信息</a>
                            </li>
                            <li>
                                <a href="#">
                                    <span class="entypo-vcard"></span>&#160;&#160;账号密码修改</a>
                            </li>
                            <li>
                                <a href="#">
                                    <span class="entypo-lifebuoy"></span>&#160;&#160;帮助</a>
                            </li>

                        </ul>
                    </li>
                    <li>
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <span class="icon-gear"></span>&#160;&#160;设置</a>
                        <ul role="menu" class="dropdown-setting dropdown-menu">

                            <li class="theme-bg">
                                <div id="button-bg"></div>
                                <div id="button-bg2"></div>
                                <div id="button-bg3"></div>
                                <div id="button-bg5"></div>
                                <div id="button-bg6"></div>
                                <div id="button-bg7"></div>
                                <div id="button-bg8"></div>
                                <div id="button-bg9"></div>
                                <div id="button-bg10"></div>
                                <div id="button-bg11"></div>
                                <div id="button-bg12"></div>
                                <div id="button-bg13"></div>
                            </li>
                        </ul>
                    </li>
                </ul>

            </div>
            <!-- 导航栏折叠 -->
        </div>
        <!-- 容器流体-->
    </nav>

<!--顶部导航结束 -->

<!-- 侧边菜单 -->
<div id="skin-select">
    <div id="logo">
        <h1>个人信息修改</h1>
    </div>

    <a id="toggle">
        <span class="entypo-menu"></span>
    </a>

    <div class="skin-part">
        <div id="tree-wrap">
            <div class="side-bar">
                <ul class="topnav menu-left-nest">
                    <li>
                        <a href="#" style="border-left:0px solid!important;" class="title-menu-left">

                            <span class="admin-info"></span>
                            <i data-toggle="tooltip" class="entypo-cog pull-right config-wrap"></i>

                        </a>
                    </li>

                    <li>
                        <a class="tooltip-tip ajax-load" href="#" title="管理员系统">
                            <i class="icon-document-edit"></i>
                            <span>个人信息</span>

                        </a>
                        <ul>
                            <li>
                                <a class="tooltip-tip2 ajax-load" href="info-view.html" title="查看个人信息"><i class="entypo-doc-text"></i><span>查看个人信息</span></a>
                            </li>
                            <li>
                                <a class="tooltip-tip2 ajax-load" href="info-modify.html" title="修改个人信息"><i class="entypo-newspaper"></i><span>修改个人信息</span></a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a class="tooltip-tip ajax-load" href="info-admin.html" title="Social">
                            <i class="icon-feed"></i>
                            <span>所有管理员信息</span>

                        </a>
                    </li>
                    <li>
                        <a class="tooltip-tip ajax-load" href="login.html" title="Media">
                            <i class="icon-camera"></i>
                            <span>退出</span>

                        </a>
                    </li>
                </ul>

                <ul class="topnav menu-left-nest">
                    <li>
                        <a href="#" style="border-left:0px solid!important;" class="title-menu-left">

                            <span class="user-manage"></span>
                            <i data-toggle="tooltip" class="entypo-cog pull-right config-wrap"></i>

                        </a>
                    </li>

                    <li>
                        <a class="tooltip-tip ajax-load" href="table-user.html" title="Dashboard">
                            <i class="icon-window"></i>
                            <span>住户表</span>

                        </a>
                    </li>
                    <li>
                        <a class="tooltip-tip ajax-load" href="table-complain.html" title="Mail">
                            <i class="icon-mail"></i>
                            <span>投诉表</span>
                        </a>
                    </li>

                    <li>
                        <a class="tooltip-tip ajax-load" href="table-repair.html" title="Icons">
                            <i class="icon-preview"></i>
                            <span>维修表</span>
                        </a>
                    </li>

                    <li>
                        <a class="tooltip-tip" href="#" title="Extra Pages">
                            <i class="icon-document-new"></i>
                            <span>公共停车位</span>
                        </a>
                        <ul>
                            <li>
                                <a class="tooltip-tip2 ajax-load" href="parks-arrange.html" title="Blank Page"><i class="icon-media-record"></i><span>停车位安排表</span></a>
                            </li>
                            <li>
                                <a class="tooltip-tip2 ajax-load" href="parks-flow.html" title="Profile Page"><i class="icon-user"></i><span>流动车位表</span></a>
                            </li>
                            <li>
                                <a class="tooltip-tip2 ajax-load" href="parks-apply.html" title="Invoice"><i class="entypo-newspaper"></i><span>申请停车位</span></a>
                            </li>
                            <li>
                                <a class="tooltip-tip2 ajax-load" href="parks-info.html" title="Pricing Table"><i class="fontawesome-money"></i><span>停车通报信息</span></a>
                            </li>
                            <li>
                                <a class="tooltip-tip2 ajax-load" href="parks-set.html" title="Time Line"><i class="entypo-clock"></i><span>停车位管理规定</span></a>
                            </li>

                        </ul>
                    </li>

                    <li>
                        <a class="tooltip-tip " href="table-fee.html" title="login">
                            <i class="icon-download"></i>
                            <span>费用表</span>
                        </a>
                    </li>

                </ul>

                <ul id="menu-showhide" class="topnav menu-left-nest">
                    <li>
                        <a href="#" style="border-left:0px solid!important;" class="title-menu-left">

                            <span class="component"></span>
                            <i data-toggle="tooltip" class="entypo-cog pull-right config-wrap"></i>

                        </a>
                    </li>


                    <li>
                        <a class="tooltip-tip" href="#" title="UI Element">
                            <i class="icon-monitor"></i>
                            <span>住户处理</span>
                        </a>
                        <ul>
                            <li>
                                <a class="tooltip-tip2 ajax-load" href="user-add.html" title="Element"><i class="icon-attachment"></i><span>添加住户</span></a>
                            </li>
                            <li><a class="tooltip-tip2 ajax-load" href="user-change.html" title="Button"><i class="icon-view-list-large"></i><span>更改住户</span></a>
                            </li>
                            <li>
                                <a class="tooltip-tip2 ajax-load" href="user-delete.html" title="Tab & Accordion"><i class="icon-folder"></i><span>删除住户</span></a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a class="tooltip-tip" href="#" title="Form">
                            <i class="icon-document"></i>
                            <span>房屋处理</span>
                        </a>
                        <ul>
                            <li>
                                <a class="tooltip-tip2 ajax-load" href="room-info.html" title="Form Elements"><i class="icon-document-edit"></i><span>房屋信息</span></a>
                            </li>
                            <li>
                                <a class="tooltip-tip2 ajax-load" href="room-ban.html" title="Andvance Form"><i class="icon-map"></i><span>禁售房屋添加</span></a>
                            </li>
                            <li>
                                <a class="tooltip-tip2 ajax-load" href="room-sale.html" title="Text Editor"><i class="icon-code"></i><span>销售房屋添加</span></a>
                            </li>
                        </ul>
                    </li>


                    <li>
                        <a class="tooltip-tip ajax-load" href="notice.html" title="Map">
                            <i class="icon-location"></i>
                            <span>发布公告</span>

                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<!-- 侧菜单结束 -->








    <!--  纸包装 -->
    <div class="wrap-fluid">
        <div class="container-fluid paper-wrap bevel tlbr">





            <!-- 内容 -->
            <div class="row">
                <div id="paper-top">
                    <div class="col-sm-3">
                        <h2 class="tittle-content-header">
                            <span class="entypo-newspaper"></span> 
                            <span>管理员好!
                            </span>
                        </h2>

                    </div>

                    <div class="col-sm-7">
                        <div class="devider-vertical visible-lg"></div>
                        <div class="tittle-middle-header">

                            <div class="alert">
                                <button type="button" class="close" data-dismiss="alert">×</button>
                                <span class="tittle-alert entypo-info-circled"></span>欢迎回来,&nbsp;
                                <strong>张裕嘉!</strong>&nbsp;&nbsp;你昨天登录的时间为下午16:54
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-2">
                        <div class="devider-vertical visible-lg"></div>
                    </div>
                </div>
            </div>
            <!--/ 主题 -->


            <!--内容-->


            <div class="row">


                <div class="col-sm-12">
                    <!-- 空白页-->

                    <div style="margin:-20px 15px;" class="nest" id="Blank_PageClose">
                        <div class="title-alt">
                            <h6>
                                个人信息编辑</h6>
                            <div class="titleClose">
                                <a class="gone" href="#Blank_PageClose">
                                    <span class="entypo-cancel"></span>
                                </a>
                            </div>
                            <div class="titleToggle">
                                <a class="nav-toggle-alt" href="#Blank_Page_Content">
                                    <span class="entypo-up-open"></span>
                                </a>
                            </div>

                        </div>

                        <div class="body-nest" id="Blank_Page_Content">
                            <div class="row">
                                <!-- 左列 -->
                                <div class="col-md-3">
                                    <div class="text-center">
                                        <img src="http://placehold.it/150" class="avatar img-circle" alt="avatar">
                                        <h6>更新不同的头像...</h6>

                                        <div class="input-group">
                                                    <span class="input-group-btn">
                                                        <span class="btn btn-primary btn-file">
                                                            <input type="file" multiple="">
                                                        </span>
                                                    </span>
                                            <input type="text" class="form-control">
                                        </div>

                                    </div>
                                </div>

                                <!-- 编辑窗排列 -->
                                <div class="col-md-9 personal-info">
                                    <div class="alert alert-info alert-dismissable">
                                        <a class="panel-close close" data-dismiss="alert">×</a>
                                        <i class="fa fa-coffee"></i>
                                        这是一个个人信息，可以使用此选项向用户显示重要消息。
                                    </div>
                                    <h3>个人信息</h3>

                                    <!--从数据库中获取数据-->


                                    <form class="form-horizontal" role="form">
                                        <div class="form-group">
                                            <label class="col-lg-3 control-label">编号:</label>
                                            <div class="col-lg-8">
                                                <input class="form-control" value="1235" type="text" id="admin_id">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-lg-3 control-label">姓名:</label>
                                            <div class="col-lg-8">
                                                <input class="form-control" value="某某某" type="text" id="admin_name">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-lg-3 control-label">进入时间:</label>
                                            <div class="col-lg-8">
                                                <input class="form-control" value="2020.1.1" type="text" id="joinTime" >
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-lg-3 control-label">邮箱:</label>
                                            <div class="col-lg-8">
                                                <input class="form-control" value="janesemail@gmail.com" type="text" id="mail">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-lg-3 control-label">手机号码:</label>
                                            <div class="col-lg-8">
                                                <input class="form-control" value="phone" type="text" id="phone">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-md-3 control-label">密码:</label>
                                            <div class="col-md-8">
                                                <input class="form-control" value="11111122333" type="password">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-3 control-label">重复输入密码:</label>
                                            <div class="col-md-8">
                                                <input class="form-control" value="11111122333" type="password" id="password">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-md-3 control-label"></label>
                                            <div class="col-md-8">
                                                <input class="btn btn-primary" value="保存修改" type="button" onclick="updateInfomation">
                                                <span></span>
                                                <input class="btn btn-default" value="取消" type="reset">
                                            </div>
                                        </div>
                                    </form>
                                    <button class="btn btn btn-primary pull-right" type="button" id="login-button" onclick="getAdminMessageBySession();">
                                        测试session
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- 空白页结束 -->
            </div>
            <!--内容 -->
        </div>
    </div>
    <!--  纸包装结束 -->
<script src='http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js'></script>
<script type="text/javascript">
    function getAdminMessageBySession() {
        {

            var datas = JSON.stringify();
            $.ajax({
                type: 'POST',
                url: "/Admin/selectAdminBySessionId",
                data: datas,
                headers : {
                    'Content-type' : 'application/json;charset=UTF-8'
                },
                success: function (data) {
//                    alert(data.admin_id);
//                    document.getElementById("admin_nameTitle").innerHTML = data.admin_name;

                    document.getElementById("admin_id").value  = data.admin_id;
                    document.getElementById("admin_name").value  = data.admin_name;
                    document.getElementById("joinTime").value  = data.joinTime;

                    document.getElementById("mail").value  = data.mail;
                    document.getElementById("phone").value  = data.phone;
//                    document.getElementById("hobby").innerHTML = data.hobby;
//                    document.getElementById("skill").innerHTML = data.skill;



                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    return false;
                    alert("出现异常，异常信息：" + textStatus, "error");
                }
            });
        }
    }
    getAdminMessageBySession();
</script>

<script type="text/javascript">
    function updateInfomation() {
        {
            //获得的数据
            var admin_id = document.getElementById("admin_id").value;
            var admin_name = document.getElementById("admin_name").value;
            var joinTime = document.getElementById("joinTime").value;
            var mail = document.getElementById("mail").value;
            var phone = document.getElementById("phone").value;
            var password = document.getElementById("password").value;

            var datas = JSON.stringify({"admin_id": admin_id, "admin_name": admin_name,"admin_password": password,"joinTime": joinTime,"mail": mail,"phone": phone});
            $.ajax({
                type: 'POST',
                url: "/Admin/updataAdmin",//url
                data: datas,
                headers : {
                    'Content-type' : 'application/json;charset=UTF-8'
                },
                success: function (data) {
                    alert("成功");
                    var resultanswer = new Array(); //定义一数组 ,用于接受网址和返回的数据
                    resultanswer = data.split(/[,]/);
                    if(resultanswer[0] == "success")
                    {
//                        alert(resultanswer[0]);

                        window.location.href= resultanswer[1];
//                        window.location.href= "modelpage.jsp";

                    }
                    else
                    {
                        alert(resultanswer[1]);
                    }

                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    return false;
                    alert("出现异常，异常信息：" + textStatus, "error");
                }
            });
        }
    }

</script>


    <!-- MAIN EFFECT -->
    <script type="text/javascript" src="assets/js/preloader.js"></script>
    <script type="text/javascript" src="assets/js/bootstrap.js"></script>
    <script type="text/javascript" src="assets/js/app.js"></script>
    <script type="text/javascript" src="assets/js/load.js"></script>
    <script type="text/javascript" src="assets/js/main.js"></script>
    <script src="assets/js/flatvideo/jquery.fitvids.js"></script>

</body>

</html>
